<#include "macro_.ftl">
package ${packageCode}.common.service;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.cache.annotation.CacheEvict;

<#list projectMapper.moduleMapperMap?values as moduleMapper>
import ${packageCode}.${moduleMapper.code}.service.${moduleMapper.code?cap_first}Service;
</#list>

/**
 * 公共服务
 *
 * @author ${author!'yaoHT'}
 * 
 */
public class DefaultCommonService implements CommonService {
	private final static Log log = LogFactory.getLog(CommonService.class);
	
<#list projectMapper.moduleMapperMap?values as moduleMapper>
	private ${moduleMapper.code?cap_first}Service ${moduleMapper.code?uncap_first}Service;
	
	public ${moduleMapper.code?cap_first}Service get${moduleMapper.code?cap_first}Service() {
		return this.${moduleMapper.code?uncap_first}Service;
	}
	
	public void set${moduleMapper.code?cap_first}Service(${moduleMapper.code?cap_first}Service ${moduleMapper.code?uncap_first}Service) {
		this.${moduleMapper.code?uncap_first}Service = ${moduleMapper.code?uncap_first}Service;
	}
	
</#list>
	@Override
	@CacheEvict(value = CommonService.CACHE_NAME, allEntries = true)
	public void reload() {
	}
}